Skip to content

arch/z80/src/ez80/ez80_spi.c: Correct oversight in previous commit#467

Merged
Ouss4 merged 1 commit into
apache:masterfrom
patacongo:spifreq
Mar 7, 2020
Merged

arch/z80/src/ez80/ez80_spi.c: Correct oversight in previous commit#467
Ouss4 merged 1 commit into
apache:masterfrom
patacongo:spifreq

Conversation

@patacongo

Copy link
Copy Markdown
Contributor

Commit 797e45d attempted to reduce the frequency of SPI reconfiguration by keeping track of the current frequency and mode settings and changing these settings only when the new settings differ from the old settings.

However, the original commit neglected to save the new frequency setting and, hence, was not effective in what it was trying to do: Every time the SPI setfrequency() method was called, it still looked like a new frequency and the frequency was still reconfigured, even though it hadn't really changed.

Commit 797e45d attempted to reduce the frequency of SPI reconfiguration by keeping track of the current frequency and mode settings and changing these settings only when the new settings differ from the old settings.

However, the original commit neglected to save the new frequency setting and, hence, was not effective in what it was trying to do:  Every time the SPI setfrequency() method was called, it still looked like a new frequency and the frequency was still reconfigured, even though it hadn't really changed.
@patacongo

Copy link
Copy Markdown
Contributor Author

Hey, the checkpatch stuff worked perfectly. I said I had a line that too long... It was right (probably because of different -m options on nxstyle). I fixed that line and forced pushed. The test ran again and passed. Good job!

@liuguo09

liuguo09 commented Mar 7, 2020

Copy link
Copy Markdown
Contributor

Glad to hear that : )

I found there is a build break in arm-01. I make a PR to fix it.
#468

@Ouss4 Ouss4 merged commit 78563d5 into apache:master Mar 7, 2020
@patacongo patacongo deleted the spifreq branch March 7, 2020 11:34
cwespressif pushed a commit to cwespressif/incubator-nuttx that referenced this pull request Apr 3, 2024
…ion_test

[T3PW] flash encryption test and issue fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants